package com.cn.http.impl;

import com.cn.enums.TypeBodyEnum;
import com.cn.http.HttpParam;


/**
 * &#064;Time 2024 八月 星期五 15:53
 *
 * @author ShangGuan
 */
public class SimpleHttpParam implements HttpParam {

    private String body;
    private String urlForm;
    private TypeBodyEnum type;
    private FileUpload fileUpload;


    @Override
    public void setType(TypeBodyEnum type) {
        this.type = type;
    }

    @Override
    public TypeBodyEnum getType() {
        return type;
    }

    @Override
    public void setBody(String body) {
        this.body = body;
    }

    @Override
    public void setUrlForm(String urlForm) {
        this.urlForm = urlForm;
    }

    @Override
    public void setFileUpload(FileUpload fileUpload) {
        this.fileUpload = fileUpload;
    }

    @Override
    public FileUpload getFileUpload() {
        return fileUpload;
    }


    @Override
    public String getBody() {
        return body;
    }

    @Override
    public String getUrlForm() {
        return urlForm;
    }
}
